home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 1.iso
/
util
/
cinstp15.zip
/
AUTOCALC.TXT
< prev
next >
Wrap
Text File
|
1995-01-18
|
4KB
|
96 lines
AUTOCALC.EXE
------------
This program is a little utility to remove the tedium from working
out the space requirements of your application when preparing your
WINSTALL.INF file. It automates the process of calculating the space
requirements and writes the results to a file which you can then
import into your INF file.
Specifically, the program does the following;
[a] read the $DISK lines in your WINSTALL.INF file
[b] read the $WINDIR lines in your WINSTALL.INF file
[c] read the $SYSDIR lines in your WINSTALL.INF file
[d] read the $TEMPDIR lines in your WINSTALL.INF file
[e] read the $OPTIONAL lines in your WINSTALL.INF file
[f] check for all the files on those lines
[g] obtain the sizes of the files (if a file is compressed, it gets
the size of the expanded image of the file)
[h] total the sizes of all the files in the installation set
[i] total the sizes of the files that make up each user option
[j] total the sizes of the files that go into the Windows directory
[k] total the sizes of the files that go into the Windows SYSTEM directory
[l] total the sizes of the files that go into the TEMP directory
(for $SWAP-SPACE)
[m] add 0.5% to each of the figures, as a safety margin (because of disk
cluster sizes)
[n] display the results on the screen
[o] write the result into a file (OPTIONS.LOG), and/or the Windows clipboard
in the format required for the INF file (you can then paste from the
clipboard, or import the contents of the file into your INF file) to
replace the
$SPACE
$WINDIR-SPACE
$SYSDIR-SPACE
$SWAP-SPACE
$USER-OPTION
lines
It would be a lot easier if these lines were grouped togther, near the
beginning of your INF file.
Please try to ensure that the directory in which the files are only
contains files that will go on your installation disks - otherwise,
the calculations might be wrong. Also, try to be a little specific
in your use of wildcards (especially if your installation set consists
of more than 1 disk) - e.g., do NOT do something like;
$DISK1=*.*
$DISK2=*.*
$DISK3=*.??_
$DISK4=*.??_
This will only confuse the program, and the same files will be processed
over and over again. One common cause of inaccurate space calculations
by AUTOCALC is the indiscriminate use of wildcard characters. Please NOTE
this point.
The program is a simple Windows program. If run without any argument,
it looks for WINSTALL.INF, and the installation files, in the current
directory and writes its output to OPTIONS.LOG in the current directory.
Note that only one directory is checked for the installation files. Thus
it is advisable to have all your installation files in a single directory
on a hard drive, and run this program there before copying the files onto
floppies.
It can also take 2 arguments. If arguments are used, they must be in the
following format;
arg 1 = the directory in which your installation files are located
(your WINSTALL.INF file must also be in that directory)
arg 2 = the name of the output file
If you are going to use the *second* argument, you MUST use both of them
(because the directory must always be the first argument).
e.g., if you have prepared all the file for your installation disks
and they are currently in a directory called C:\FINAL, waiting
for copying to the installation disks, you can run the following
command, to finalise you WINSTALL.INF file's details;
AUTOCALC c:\final c:\temp\myopt.txt
or
AUTOCALC c:\final
NOTE: AutoCalc sometimes gives you a negative value for $SPACE (or
any of the others). In such cases, simply replace the negative value
with a ZER0.